package com.example.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;

@Data
@Document(indexName = "pms")
public class Dynamic implements Serializable {

    private static final long serialVersionUID = -1L;

    @Id
    private Integer id;

    private String title;

    private String imgId;

    private Date creatDate;

    private Integer uid;

    @Field(analyzer = "ik_max_word",type = FieldType.Text)
    private String dynamic;
}